#! /usr/bin/env python

import sys
import xml.etree.ElementTree as ET

def getpath(elem, path):
    if len(list(elem)):
        path = path + "." + elem.attrib['name']
        for child in elem:
            getpath(child, path)
    else:
        print path + "." + elem.attrib['name']

tree = ET.parse(sys.argv[1])
root = tree.getroot()
getpath(root, "")
